import http from '../https'
const FoodAll = () => http({
    url: '/selectAllFood',
    method: 'get'
})
const delfood = (id) => http({
    url: '/deleteFoodById',
    method: 'post',
    data: { id }

})
const addfood = (obj) => http({
    url: '/addFood',
    method: 'post',
    data: obj,
    processData: false,

})
const modfood = (obj) => http({
    url: '/updateFoodById',
    method: 'post',
    data: { ...obj }
})
export {
    FoodAll,
    delfood,
    addfood,
    modfood
}